<div class="modal-header">
    <a class="close" onclick="$('#winKary').modal('hide');" >&times;</a>
    <h4>Choose Karyawan</h4>
</div>
 
<div class="modal-body" >
<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'karyawan-grid',
	'dataProvider'=>$model->search(),
        'type'=>'striped bordered condensed',
        'template'=>'{summary}{pager}{items}{pager}',
		'filter'=>$model,
	'columns'=>array(
		array(
			'header'=>'No.',
			'value'=>'$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
		  ),
		'nip',
		'nama',
		'nama_golongan',
		array(
			'header' => 'Jabatan',
			'name' => 'nama_jabatan',
			'value' => '$data->nama_jabatan',
		),
		array(
			'header' => 'Type Dinas',
			'name' => 'nama_type_dinas',
			'value' => '$data->nama_type_dinas',
		),
		array(
			'value' => 'CHtml::button("Choose", array("id"=>"choise".$data[id_kary],"class" => "btn", "onClick"=>"chKary(\'$data[id_kary]\',\'$data[nama]\')"));',
			'type'=>'raw',
			// 'htmlOptions' => array('class' => 'btn'),
		),
       
	),
)); ?>
</div>
<div class="modal-footer">
    <?php $this->widget('bootstrap.widgets.TbButton', array(
		'buttonType'=>'submit',
        'type'=>'primary',
        'label'=>'Choose',
        'htmlOptions'=>array('id' => 'choose','name' => 'choose', 'value' => 'Choose'),
    )); ?>
    <?php $this->widget('bootstrap.widgets.TbButton', array(
        'label'=>'Close',
        'url'=>'#',
        'htmlOptions'=>array('onclick'=>"js:$('#winKary').modal('hide');"),
    )); ?>
</div>